package problem_everyday;

public class D2025_07_01_P3330 {
    public int possibleStringCount(String word) {
        int res = 1;
        char c = (char) 0;
        int num = 1;
        for(int i=0; i<word.length(); i++){
            if(word.charAt(i)==c){
                num ++ ;
            } else {
                res = res + (num - 1);
                num = 1;
                c = word.charAt(i);
            }
        }
        res = res + (num - 1);
        return res;
    }

    public  static void main(String[] args){
        D2025_07_01_P3330 p = new D2025_07_01_P3330();
        System.out.println(p.possibleStringCount("abbcccc"));
    }

}
